<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>多维数据管理平台</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/static/dashboard/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="http://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="http://cdn.staticfile.org/ionicons/2.0.1/css/ionicons.min.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="/static/dashboard/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="/static/dashboard/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="/static/dashboard/dist/css/skins/_all-skins.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="http://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <header class="main-header">

        <!-- Logo -->
        <a href="/dashboard" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>AMP</b></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>多维数据管理平台</b></span>
        </a>

        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">

                    <li>
                        <a href="#" data-toggle="modal" data-target="#modal_modify_passwd"><i
                                    class="fa fa-unlock-alt"></i> 修改密码</a>
                    </li>

                    <li>
                        <a href="/dashboard/logout"><i class="fa fa-sign-out"></i> 注销</a>
                    </li>
                </ul>
            </div>

        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="/static/dashboard/dist/img/timg.jpg" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p><?= $username ?></p>
                    <a href="#"><?= $userdept ?></a>
                </div>
            </div>
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">
                <li class="header">菜单</li>

                <li class="treeview <?php if ($module == 'user') echo 'active'; ?>">
                    <a href="#">
                        <i class="fa fa-user"></i> <span>人员管理</span>
                        <span class="pull-right-container <?php if ($uncheck_count == 0) echo 'hide' ?>">
                                  <small class="label pull-right bg-red">New</small>
                                </span>
                        <span class="pull-right-container">
                          <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/user/uncheck"><i class="fa fa-circle-o text-red"></i> 待审核
                                <span class="pull-right-container <?php if ($uncheck_count == 0) echo 'hide' ?>">
                                  <small class="label pull-right bg-red"><?php echo $uncheck_count ?></small>
                                </span>
                            </a>
                        </li>
                        <li><a href="/user/checked"><i class="fa fa-check text-green"></i> 已审核</a></li>
                        <?php if ($is_admin): ?>
                            <li><a href="/user/manage"><i class="fa fa-users text-green"></i> 在职警员管理</a></li>
                        <?php endif; ?>
                    </ul>
                </li>

                <li class="treeview <?php if ($module == 'accident') echo 'active'; ?>">
                    <a href="#">
                        <i class="fa fa-car"></i>
                        <span>事故定点</span>
                        <span class="pull-right-container">
                          <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">

                        <li><a href="/accident/statistics"><i class="fa fa-line-chart"></i> 统计报表</a></li>
                        <li>
                            <a href="#"><i class="fa fa-tasks"></i> 简易事故匹配
                                <span class="pull-right-container">
                              <i class="fa fa-angle-left pull-right"></i>
                            </span>
                            </a>
                            <ul class="treeview-menu">
                                <li>
                                    <a href="/accident/analysis/all"><i class="fa fa-list-alt"></i> 已匹配
                                    </a>
                                </li>

                                <li><a href="/accident/analysis/locate"><i class="fa fa-map-marker"></i> 待定位
                                        <span class="pull-right-container <?php if ($require_locate_count == 0) echo 'hide' ?>">
                                  <small class="label pull-right bg-red"><?php echo $require_locate_count ?></small>
                                </span>
                                    </a>
                                </li>
                                <li><a href="/accident/analysis/typein"><i class="fa fa-keyboard-o"></i> 待录入
                                        <span class="pull-right-container <?php if ($require_type_in_count == 0) echo 'hide' ?>">
                                  <small class="label pull-right bg-red"><?php echo $require_type_in_count ?></small>
                                </span>
                                    </a></li>
                            </ul>
                        </li>

                        <li>
                            <a href="/accident/adjust"><i class="fa fa-exchange"></i> 事后关联
                            </a>
                        </li>

                        <li>
                            <a href="/accident/live" target="_blank">
                                <i class="fa fa-map-o"></i> <span>可视化展示</span>
                            </a>
                        </li>
                    </ul>
                </li>


                <li class="treeview <?php if ($module == 'violation'||$module == 'violationsearch') echo 'active'; ?>">
                    <a href="#">
                        <i class="fa fa-book"></i> <span>违法教育</span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/violation"><i class="fa fa-bar-chart text-red"></i> 图形显示</a> </li>
                        <li><a href="/violationsearch"><i class="fa fa-search text-green"></i>违法查询</a></li>
                    </ul>
                </li>

            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <div class="modal fade" id="modal_modify_passwd" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">修改密码</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group has-feedback">
                        <label for="input_password" class="control-label">旧密码:</label>
                        <input type="password" id="input_password" class="form-control" placeholder="密码">
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                    </div>
                    <div class="form-group has-feedback">
                        <label for="input_password_new" class="control-label">新密码:</label>
                        <input type="password" id="input_password_new" class="form-control" placeholder="密码">
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                    </div>
                    <div class="form-group has-feedback">
                        <label for="input_password_new_repeat" class="control-label">再输一次新密码:</label>
                        <input type="password" id="input_password_new_repeat" class="form-control" placeholder="密码">
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                    </div>
                    <p id="modify_passwd_tips" class="label label-danger"></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" id="btn_modify_passwd">确定修改密码</button>
                </div>
            </div>
        </div>
    </div>